package com.bgs.mapper;

import com.bgs.common.R;
import com.bgs.pojo.CustomerAddr;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.data.repository.query.Param;

import java.util.LinkedHashMap;
import java.util.List;

/**
 * <p>
 * 地址表 Mapper 接口
 * </p>
 *
 * @author Asia
 * @since 2021-09-14
 */
public interface CustomerAddrMapper extends BaseMapper<CustomerAddr> {
    //添加用户地址
    int TowAddAddress(@Param("beforeUserId") Integer beforeUserId, @Param("customerAddr") LinkedHashMap customerAddr);
    //根据用户id查看用户地址
    List<CustomerAddr> TowListAdd(Integer beforeUserId);
    //修改用户地址
    int TowUpdateAddress(@Param("beforeUserId") Integer beforeUserId,@Param("addressData") LinkedHashMap addressData);
}
